package com.yc.cloud.api.constants;

public interface RedisKeyConstants {

    String DATABASE = "";

    String USERNAME = "%username%";

    String MEMBER_ACCOUNT = DATABASE + "member:" + USERNAME + ":info";

    String WX_INFO = DATABASE + "wx:";

    String ADMIN_ACCOUNT = DATABASE + "ums:" + USERNAME + ":info";

    String ADMIN_RESOURCE = DATABASE + "ums:" + USERNAME + ":resources";

    String ALARM_DISK_LOW = "ums:alarm";

    String SYS_DICTS = "sys:dicts";

    // AI盒子在线心跳: hw:device:online:{deviceSn}
    String DEVICE_SN = "%deviceSn%";
    String HW_DEVICE_ONLINE = "hw:device:online:" + DEVICE_SN;

    // 摄像头在线心跳: hw:camera:online:{deviceSn}
    String HW_CAMERA_ONLINE = "hw:camera:online:" + DEVICE_SN;

    // 人脸识别相关缓存key
    String FACE_ID = "%faceId%";
    // 人脸信息缓存: face:info:{faceId}
    String FACE_INFO = "face:info:" + FACE_ID;
    // 人脸特征缓存: face:feature:{faceId}
    String FACE_FEATURE = "face:feature:" + FACE_ID;
    // 人脸比对结果缓存: face:compare:{faceId}:{timestamp}
    String FACE_COMPARE = "face:compare:" + FACE_ID;

    // 告警邮件发送限流: alarm:email:sent:{algorithmId}
    String ALGORITHM_ID = "%algorithmId%";
    String ALARM_EMAIL_SENT = "alarm:email:sent:" + ALGORITHM_ID;

}
